From: robertl Date: Mon, 5 Apr 2010 13:04:34 +0000 (+0000) Subject: Add hard error for Lowrance USR V3 files. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~199^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=a2fcc6bd3bb1d25e72dcb758bef6a9b43e958ae2;p=gpsbabel.git Add hard error for Lowrance USR V3 files. --- diff --git a/lowranceusr.c b/lowranceusr.c index 9fc1a8766..90f2cf362 100644 --- a/lowranceusr.c +++ b/lowranceusr.c @@ -620,6 +620,10 @@ data_read(void) if (MajorVersion < 2) { fatal(MYNAME ": input file is from an old version of the USR file and is not supported\n"); } + if (MajorVersion > 3) { + fatal(MYNAME ": input file version %d is not supported\n", + MajorVersion); + } NumWaypoints = gbfgetint16(file_in);